<?php
namespace Admin\Model;
use Think\Model\ViewModel;;
class AdminViewModel extends ViewModel {
	//关联admin和auth两个表然后对应admin.roleid=auth.id
    public $viewFields = array(
    	'admin'=>array('id'=>'LEFT'),
    	'auth'=>array('authname','_on'=>'admin.roleid=auth.id'),

    	);

    
}